package com.assignwork.modules.workarrange;

import com.assignwork.dto.WorkArrangeOtherSearchDTO;
import com.assignwork.service.IWorkArrangeWorkersService;
import com.assignwork.vo.WorkArrangeOtherPageVO;
import com.assignwork.vo.WorkArrangeWorkersVO;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.github.xiaoymin.knife4j.annotations.ApiOperationSupport;
import io.swagger.annotations.ApiOperation;
import lombok.AllArgsConstructor;
import org.springblade.core.boot.ctrl.BladeController;
import org.springblade.core.mp.support.Condition;
import org.springblade.core.mp.support.Query;
import org.springblade.core.tool.api.R;
import org.springblade.core.tool.utils.Func;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @ClassName WorkArrangeWorkersController
 * @Description 配工工人前端控制器
 * @Author dujianyu
 * @Date 2023/12/13 9:34
 */
@RestController
@AllArgsConstructor
@RequestMapping("workArrange/workers")
public class WorkArrangeWorkersController extends BladeController {

    private IWorkArrangeWorkersService service;

    @GetMapping("/infoByArrangeId")
    @ApiOperationSupport(order = 1)
    @ApiOperation(value = "工人信息", notes = "传入arrangeId")
    public R<List<WorkArrangeWorkersVO>> infoByArrangeId(String arrangeId) {
        return R.data(service.infoByArrangeId(Func.toLong(arrangeId)));
    }

}
